import axios from "axios";

// const baseUrl = "https://newapi.xigyu.com";
const baseUrl = "http://192.168.0.91:60099";
export function weChatRecord(data) {
  console.log("data", `${baseUrl}/WeChatRecord/DealFactoryRecord`);
  console.log(data);

  return axios
    .post(`${baseUrl}/WeChatRecord/DealFactoryRecord`, data)
    .then((response) => {
      // 处理成功的响应
      return response.data; // 返回响应数据
    })
    .catch((error) => {
      // 处理错误
      console.error("请求失败:", error);
      // throw error; // 抛出错误以便后续处理
    });
}
